def split_account(str01,cusId,sender):
    # str01 = '是否对公打款(是/否):是\n账户ID:1798101258222595a\n充值金额(现金):20000\n账户名称:潇湘妈妈选书团 02-奈斯-荣恒教育官方旗舰店-外部'
    # str01 = '''是否对公打款(是/否):是
    # 账户ID:1798101258222595
    # 充值金额(现金):20000
    # 账户名称:潇湘妈妈选书团 02-奈斯-荣恒教育官方旗舰店-外部'''
    # print(str01)

    # 使用 split() 方法根据回车符分割字符串
    lines = str01.splitlines()
    result = 1
    msg = ""
    dictVal = {"account": "0", "cash": 0, "cus_id": 0, "sender": sender}

    if len(lines) < 3:
        msg = "充值【数据格式】出错，至少4个条件"
        print(msg)
        result = 0
        return result, msg, dict
    if len(lines) > 3:
        msg = "请不要发些无关的事情，我理解不了"
        print(msg)
        result = 0
        return result, msg, dict
    # 打印结果
    for i, line in enumerate(lines, start=1):
        print(f"{i}行: {line}")
        # 正则表达式模式，匹配账户ID后的至少16位数字
        index = line.find("AID:")
        if index != -1:
            prefix, suffix = line.split("AID:", maxsplit=1)
            # 打印后缀部分
            # print(f"【账户ID】数据部分: {suffix}||",  suffix)
            if len(suffix) < 16:
                msg = f"【AID】,长度小于16位"
                print(msg)
                result = 0
                return result, msg, dict
            if not suffix.isdigit():
                msg = f"【AID】{suffix}非数值"
                print(msg)
                result = 0
                return result, msg, dict
            dictVal["account"] = suffix.rstrip()

        index = line.find("充值金额(巨量币):")
        if index != -1:
            prefix, suffix = line.split("充值金额(巨量币):", maxsplit=1)
            # 打印后缀部分
            # print(f"【充值金额】数据部分: {suffix}||",  suffix)
            suffix = suffix.strip()
            if (not suffix.isdigit()) and (not suffix.replace('.', '', 1).isdigit()):
                msg = f"【充值金额】{suffix}非数值"
                print(msg)
                result = 0
                return result, msg, dict
            if float(suffix) < 0.10:
                msg = f"【充值金额】{suffix}: 小于100元"
                print(msg)
                result = 0
                return result, msg, dict
            cash01 = round(float(suffix.rstrip()), 2)
            dictVal["cash"] = cash01

        # index = line.find("账户名称:")
        # if index != -1:
        #     # 使用字符串的split方法按照"账户名称:"进行分割
        #     # 注意这里我们使用maxSplit=1来确保只分割一次，得到两部分：前缀和后缀
        #     prefix, suffix = line.split("账户名称:", maxsplit=1)
            # 打印后缀部分
            # print(f"【账户名称】后面的部分是: {suffix}||",suffix)
        dictVal["cus_id"] = cusId

    if dictVal["account"] == "0":
        msg = f"【账户AID】,未填写"
        print(msg)
        result = 0
        return result, msg, dict

    if not dictVal["cash"]:
        msg = f"【充值金额】,未填写"
        print(msg)
        result = 0
        return result, msg, dict

    if not dictVal["cus_id"]:
        msg = f"【客户名称映射】出错"
        print(msg)
        result = 0
        return result, msg, dict

    return result, msg, dictVal
